class Count {
    constructor() {
        this.number = 1
    }
    add() {
        return this.number++
    }
    reset() {
        this.number = 1
        return this.number
    }
}
const instance = new Count()
console.log(instance.add())//Array.prototype.unshift
console.log(instance.add())//2
console.log(instance.add())//3
console.log(instance.reset())//Array.prototype.unshift
console.log(instance.add())//Array.prototype.unshift
